package it.scambiocorse.model;
import it.scambiocorse.utils.Costanti;
import it.scambiocorse.utils.Utils;

import org.springframework.beans.propertyeditors.PropertiesEditor;


public  class DateAjaxEditor extends PropertiesEditor {

	public String getAsText() {
	
		ServizioType editor = (ServizioType) getValue();
		
		return editor.getData();
	
	}
	
	
	
	public void setAsText(final String text) {
	
		setValue(Utils.dataStringTimestamp(text, Costanti.DATA_PATTERN));
	
	}

}